package com.kvest.scanrecognizer.network.response;

import com.kvest.scanrecognizer.datamodel.RecognizeStatus;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 10.09.13
 * Time: 23:39
 * To change this template use File | Settings | File Templates.
 */
public class StatusResponse extends BasicResponse {
    public static final int CODE_OK = 0;
    public static final int CODE_ERROR = 1;

    public String uid;
    public int code;
    private int status;

    public StatusResponse(int code) {
        this.code = code;
    }

    public RecognizeStatus getStatus() {
        return RecognizeStatus.convert(status);
    }
}
